package org.polaris.gift.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author polaris
 * @since 2023-06-20
 */
public class Department extends Model<Department> {

    private static final long serialVersionUID = 1L;

    /**
     * 部门编号
     */
    @TableId(value = "dep_id", type = IdType.AUTO)
    private Integer depId;
    /**
     * 部门名称
     */
    @TableField("dep_name")
    private String depName;
    @TableField("dep_nums")
    private Integer depNums;


    public Integer getDepId() {
        return depId;
    }

    public void setDepId(Integer depId) {
        this.depId = depId;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public Integer getDepNums() {
        return depNums;
    }

    public void setDepNums(Integer depNums) {
        this.depNums = depNums;
    }

    @Override
    protected Serializable pkVal() {
        return this.depId;
    }

    @Override
    public String toString() {
        return "Department{" +
        ", depId=" + depId +
        ", depName=" + depName +
        ", depNums=" + depNums +
        "}";
    }
}
